﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddAddress.aspx.cs" Inherits="SD.UI.AddAddress" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="CSS/Style.css" /> 
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Address Line 1"></asp:Label>
                    &nbsp;<asp:Label ID="Label8" runat="server" Text="*" ForeColor="Red"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtLine1" runat="server" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="Address line1 is required" ControlToValidate="txtLine1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="Address Line 2"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtLine2" runat="server" Width="150px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Address Line 3"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtLine3" runat="server" Width="150px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Postcode"></asp:Label>
                    &nbsp;<asp:Label ID="Label9" runat="server" Text="*" ForeColor="Red"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPostcode" runat="server" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ErrorMessage="Postcode is required" ControlToValidate="txtPostcode"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="City/Town"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlTown" runat="server" Width="150px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="County"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlCounty" runat="server" Width="150px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label7" runat="server" Text="Nation/Country"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlCountry" runat="server" Width="150px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>                
                <td colspan="2">                    
                    <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" 
                        CssClass="Button" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" 
                        CausesValidation="False" CssClass="Button" OnClientClick="window.close()"/>
                    &nbsp;&nbsp;
                    <asp:Button ID="btnReset" runat="server" Text="Reset" 
                        onclick="btnReset_Click" CausesValidation="False" CssClass="Button" />
                    &nbsp;&nbsp;
                    <asp:Label ID="lblStatus" runat="server" Text="" ForeColor="Red"></asp:Label>                    
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
